package com.encryption.dao;

import java.io.Serializable;

public class Condition implements Serializable {
	public static final String EQ = "=";
	public static final String GT = ">";
	public static final String GE = ">=";
	public static final String LT = "<";
	public static final String LE = "<=";
	public static final String LIKE = "like";
	public static final String BETWEEN = "between";

	private String code;
	// =,>,>=,<,<=,like,between
	private String operation;
	private Object value;

	public Condition() {
		super();
	}

	public Condition(String code, Object value) {
		super();
		this.code = code;
		this.operation = EQ;
		this.value = value;
	}

	public Condition(String code, String operation, Object value) {
		super();
		this.code = code;
		this.operation = operation;
		this.value = value;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getOperation() {
		return operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

}
